package com.durian.base.update.proxy.impl

import com.durian.base.update.entity.DownloadEntity
import com.durian.base.update.proxy.IApkInspector

/**
 * 说明：FileInspector
 * <p/>
 * 作者：fanly
 * <p/>
 * 类型：Class
 * <p/>
 * 时间：2021/2/3 1:12 PM
 * <p/>
 * 版本：version 1.0
 */
class FileInspector : IApkInspector{
    override fun inspect(entity: DownloadEntity) : Boolean{
        val file = entity.apkFile
        return file.isFile && file.exists()
    }

}